﻿using System;

namespace Sustainalytics.LongRunningTaskManager.Interface
{
    /// <summary>
    /// Thrown when a specific task type is not supported.
    /// </summary>
    public class LongRunningTaskTypeNotSupportedException : Exception
    {
        /// <summary>
        /// Not supported task type.
        /// </summary>
        public LongRunningTaskTypeEnum TaskType { get; set; }


        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="taskType"> Not supported task type. </param>
        public LongRunningTaskTypeNotSupportedException(LongRunningTaskTypeEnum taskType)
        {
            this.TaskType = taskType;
        }
    }
}
